package com.study.service.impl;

import com.study.dao.UserDao;
import com.study.dto.User;
import com.study.dto.UserDto;
import com.study.service.UserService;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @Author tanglingyu
 * @Date: 2021/04/08/ 21:53
 * @Description
 */
@Service
public class UserServiceImpl implements UserService {

  @Resource
  private UserDao userDao;

  @Override
  public List<User> findUserByName(String name) {
    return userDao.getUserByName(name);
  }

  @Override
  public int insert(String name, String location, String testName) {
    return userDao.insert(name, location, testName);
  }

  @Override
  public int batchInsert(List<UserDto> users) {
    return userDao.batchInsert(users);
  }
}
